<div class="groups view">
<h2><?php  __('Grupos');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['nombre']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<?php echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="related">
	<h3><?php __('Related Actividades');?></h3>
	<?php if (!empty($group['Actividade'])):?>
	
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		
		<th><?php __('Nombre'); ?></th>
		
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['Actividade'] as $actividade):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			
			<td><?php echo $actividade['nombre'];?></td>
			<td><?php echo $actividade['group_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Ver', true), array('controller' => 'actividades', 'action' => 'view', $actividade['id'])); ?>
				<?php echo $this->Html->link(__('Editar', true), array('controller' => 'actividades', 'action' => 'edit', $actividade['id'])); ?>
				<?php echo $this->Html->link(__('Eliminar', true), array('controller' => 'actividades', 'action' => 'delete', $actividade['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $actividade['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Actividade', true), array('controller' => 'actividades', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Criterios Bitacoras');?></h3>
	<?php if (!empty($group['CriteriosBitacora'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Criterio'); ?></th>
		<th><?php __('Group Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['CriteriosBitacora'] as $criteriosBitacora):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $criteriosBitacora['id'];?></td>
			<td><?php echo $criteriosBitacora['criterio'];?></td>
			<td><?php echo $criteriosBitacora['group_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'criterios_bitacoras', 'action' => 'view', $criteriosBitacora['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'criterios_bitacoras', 'action' => 'edit', $criteriosBitacora['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'criterios_bitacoras', 'action' => 'delete', $criteriosBitacora['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $criteriosBitacora['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Criterios Bitacora', true), array('controller' => 'criterios_bitacoras', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Users');?></h3>
	<?php if (!empty($group['User'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Primer Nombre'); ?></th>
		<th><?php __('Segundo Nombre'); ?></th>
		<th><?php __('Primer Apellido'); ?></th>
		<th><?php __('Segundo Apellido'); ?></th>
		<th><?php __('Tipo Documento'); ?></th>
		<th><?php __('Identificacion'); ?></th>
		<th><?php __('Group Id'); ?></th>
		<th><?php __('Genero'); ?></th>
		<th><?php __('Telefono'); ?></th>
		<th><?php __('Direccion'); ?></th>
		<th><?php __('Correo'); ?></th>
		<th><?php __('Honorarios'); ?></th>
		<th><?php __('Fecha Vinculacion'); ?></th>
		<th><?php __('Ultimo Acceso'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['User'] as $user):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $user['id'];?></td>
			<td><?php echo $user['primer_nombre'];?></td>
			<td><?php echo $user['segundo_nombre'];?></td>
			<td><?php echo $user['primer_apellido'];?></td>
			<td><?php echo $user['segundo_apellido'];?></td>
			<td><?php echo $user['tipo_documento'];?></td>
			<td><?php echo $user['identificacion'];?></td>
			<td><?php echo $user['group_id'];?></td>
			<td><?php echo $user['genero'];?></td>
			<td><?php echo $user['telefono'];?></td>
			<td><?php echo $user['direccion'];?></td>
			<td><?php echo $user['correo'];?></td>
			<td><?php echo $user['honorarios'];?></td>
			<td><?php echo $user['fecha_vinculacion'];?></td>
			<td><?php echo $user['ultimo_acceso'];?></td>
			<td><?php echo $user['created'];?></td>
			<td><?php echo $user['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Users Equipos Operativos');?></h3>
	<?php if (!empty($group['UsersEquiposOperativo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Equipos Operativo Id'); ?></th>
		<th><?php __('Group Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['UsersEquiposOperativo'] as $usersEquiposOperativo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $usersEquiposOperativo['id'];?></td>
			<td><?php echo $usersEquiposOperativo['user_id'];?></td>
			<td><?php echo $usersEquiposOperativo['equipos_operativo_id'];?></td>
			<td><?php echo $usersEquiposOperativo['group_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'users_equipos_operativos', 'action' => 'view', $usersEquiposOperativo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'users_equipos_operativos', 'action' => 'edit', $usersEquiposOperativo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'users_equipos_operativos', 'action' => 'delete', $usersEquiposOperativo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $usersEquiposOperativo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Users Equipos Operativo', true), array('controller' => 'users_equipos_operativos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
